//
//  StatusTextView.m
//  微博2期
//
//  Created by J on 16/1/1.
//
//

#import "StatusTextView.h"

@implementation StatusTextView
- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        self.textContainerInset = UIEdgeInsetsMake(0, -5, 0, -5);
        self.scrollEnabled = NO;
        
    }
    return self;
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
  // 触摸对象
    UITouch* touch = [touches anyObject];
    //找出触摸点在哪个特殊字符串上面
    //在被触摸的字符串后面显示一段高亮的背景
    NSLog(@"%@",NSStringFromCGPoint([touch locationInView:self]));
  
    
}

- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    //去掉特殊字符串后面的高亮背景
}

@end
